<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>学生信息管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../static/lib/layui/css/layui.css" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>

<ul class="layui-nav layui-bg-green">
    <li class="layui-nav-item layui-this"><a href="/studentIndex">个人信息</a></li>
    <li class="layui-nav-item "><a href="/getLesson" id="stu_lesson">课程查询</a></li>
    <li class="layui-nav-item " id="stu_score"><a href="/getScore">成绩查询</a></li>

    <li class="layui-nav-item"><a href="/studentMore">更多操作</a></li>
</ul>
<div class="layui-form">
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>学号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>专业</th>
            <th>年级</th>
            <th>籍贯</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td> {{ stu.s_number }}</td>
            <td> {{ stu.s_name }}</td>
            <td> {{ stu.sex }}</td>
            <td> {{ stu.subject }}</td>
            <td> {{ stu.grade }}</td>
            <td> {{ stu.native_place }}</td>

        </tr>
        </tbody>
    </table>
</div>
<script src="../static/lib/layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
    layui.use('element', function () {
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function (elem) {
            //console.log(elem)
            layer.msg(elem.text());
        });

        $(document).ready(function () {
            alert("asdas")
        })
    });


</script>

</body>
</html>